x86/msr: Compile out unused logic/objects
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 26 Feb 2020 12:26:14 +0000 (12:26 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 27 Feb 2020 18:54:58 +0000 (18:54 +0000)
commitfd0ec12c3a41065faab70153b8037c9263571dc0
treeb700fc0e23c74a4bef1d59906caa876700138112
parent78a9ae2399d3f326c824ba3664e9654ff18a0091
x86/msr: Compile out unused logic/objects

Arrange to compile out the PV or HVM logic and objects as applicable.  This
involves a bit of complexity in init_domain_msr_policy() as is_pv_domain()
can't be evaulated at compile time.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/msr.c